package web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import pojo.Dept;
import service.DeptService;

@Controller
public class DeptServlet {
    @Autowired
    private DeptService deptService;

    public int addDept(Dept dept){

        return deptService.addDept(dept);

    }
}
